interface SearchFun {
    (a: string, b: number): boolean;
}

const searchFun: SearchFun = (name, age) => {
    return age === 16
}

const res = searchFun('mystic', 16)
console.log(res)